package com.dragon.modules.yuegou.query.wallet;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.wallet.MemberCardRefundEntity;
import com.dragon.modules.yuegou.enums.wallet.MemberCardRefundRefundCurrency;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 会员退卡 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-06-03 15:20:36
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class MemberCardRefundQuery extends MemberCardRefundEntity implements Query<MemberCardRefundEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 退款单号（订单模块）查询条件 */
	@JsonUnwrapped(prefix = "refundNo")
	private Condition<String> refundNoCondition;

    /** 会员ID（冗余ID）查询条件 */
	@JsonUnwrapped(prefix = "memberId")
	private Condition<String> memberIdCondition;

    /** 会员钱包ID（冗余ID）查询条件 */
	@JsonUnwrapped(prefix = "memberWalletId")
	private Condition<String> memberWalletIdCondition;

    /** 悦卡模板ID查询条件 */
	@JsonUnwrapped(prefix = "cardTemplateId")
	private Condition<String> cardTemplateIdCondition;

    /** 会员悦卡ID查询条件 */
	@JsonUnwrapped(prefix = "memberCardId")
	private Condition<String> memberCardIdCondition;

    /** 退卡的悦卡金额查询条件 */
	@JsonUnwrapped(prefix = "amount")
	private Condition<BigDecimal> amountCondition;

    /** 退还的金额查询条件 */
	@JsonUnwrapped(prefix = "refundFee")
	private Condition<BigDecimal> refundFeeCondition;

    /** [枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY查询条件 */
	@JsonUnwrapped(prefix = "refundCurrency")
	private Condition<MemberCardRefundRefundCurrency> refundCurrencyCondition;

    /** 退款时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 微信交易单号（微信退款时存在）查询条件 */
	@JsonUnwrapped(prefix = "wechatTransactionId")
	private Condition<String> wechatTransactionIdCondition;

    /** 微信退款单号（微信退款时存在）查询条件 */
	@JsonUnwrapped(prefix = "wechatRefundId")
	private Condition<String> wechatRefundIdCondition;

    /** 微信商户ID（微信退款时存在）查询条件 */
	@JsonUnwrapped(prefix = "wechatMchId")
	private Condition<String> wechatMchIdCondition;

    /** 微信子商户ID（微信退款时存在）查询条件 */
	@JsonUnwrapped(prefix = "wechatSubMchId")
	private Condition<String> wechatSubMchIdCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public MemberCardRefundQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public MemberCardRefundQuery(MemberCardRefundEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public MemberCardRefundQuery(MemberCardRefundQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.refundNoCondition != null) {
			this.refundNoCondition = other.refundNoCondition.copy();
		}
		if(other.memberIdCondition != null) {
			this.memberIdCondition = other.memberIdCondition.copy();
		}
		if(other.memberWalletIdCondition != null) {
			this.memberWalletIdCondition = other.memberWalletIdCondition.copy();
		}
		if(other.cardTemplateIdCondition != null) {
			this.cardTemplateIdCondition = other.cardTemplateIdCondition.copy();
		}
		if(other.memberCardIdCondition != null) {
			this.memberCardIdCondition = other.memberCardIdCondition.copy();
		}
		if(other.amountCondition != null) {
			this.amountCondition = other.amountCondition.copy();
		}
		if(other.refundFeeCondition != null) {
			this.refundFeeCondition = other.refundFeeCondition.copy();
		}
		if(other.refundCurrencyCondition != null) {
			this.refundCurrencyCondition = other.refundCurrencyCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.wechatTransactionIdCondition != null) {
			this.wechatTransactionIdCondition = other.wechatTransactionIdCondition.copy();
		}
		if(other.wechatRefundIdCondition != null) {
			this.wechatRefundIdCondition = other.wechatRefundIdCondition.copy();
		}
		if(other.wechatMchIdCondition != null) {
			this.wechatMchIdCondition = other.wechatMchIdCondition.copy();
		}
		if(other.wechatSubMchIdCondition != null) {
			this.wechatSubMchIdCondition = other.wechatSubMchIdCondition.copy();
		}
	}

	@Override
	public QueryWrapper<MemberCardRefundEntity> toQueryWrapper() {
		QueryWrapper<MemberCardRefundEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (refundNoCondition != null) {
			refundNoCondition.toWrapper(wrapper, COL_REFUND_NO);
		}
		if (memberIdCondition != null) {
			memberIdCondition.toWrapper(wrapper, COL_MEMBER_ID);
		}
		if (memberWalletIdCondition != null) {
			memberWalletIdCondition.toWrapper(wrapper, COL_MEMBER_WALLET_ID);
		}
		if (cardTemplateIdCondition != null) {
			cardTemplateIdCondition.toWrapper(wrapper, COL_CARD_TEMPLATE_ID);
		}
		if (memberCardIdCondition != null) {
			memberCardIdCondition.toWrapper(wrapper, COL_MEMBER_CARD_ID);
		}
		if (amountCondition != null) {
			amountCondition.toWrapper(wrapper, COL_AMOUNT);
		}
		if (refundFeeCondition != null) {
			refundFeeCondition.toWrapper(wrapper, COL_REFUND_FEE);
		}
		if (refundCurrencyCondition != null) {
			refundCurrencyCondition.toWrapper(wrapper, COL_REFUND_CURRENCY);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (wechatTransactionIdCondition != null) {
			wechatTransactionIdCondition.toWrapper(wrapper, COL_WECHAT_TRANSACTION_ID);
		}
		if (wechatRefundIdCondition != null) {
			wechatRefundIdCondition.toWrapper(wrapper, COL_WECHAT_REFUND_ID);
		}
		if (wechatMchIdCondition != null) {
			wechatMchIdCondition.toWrapper(wrapper, COL_WECHAT_MCH_ID);
		}
		if (wechatSubMchIdCondition != null) {
			wechatSubMchIdCondition.toWrapper(wrapper, COL_WECHAT_SUB_MCH_ID);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回退款单号（订单模块）查询条件
	 * 
	 * @return refundNoCondition 退款单号（订单模块）查询条件
	 */
	public Condition<String> refundNo() {
		this.refundNoCondition = new Condition<>();
		return this.refundNoCondition;
	}
	
	/**
	 * 获取退款单号（订单模块）查询条件
	 * 
	 * @return refundNoCondition 退款单号（订单模块）查询条件
	 */
	public Condition<String> getRefundNoCondition() {
		return refundNoCondition;
	}

	/**
	 * 设置退款单号（订单模块）查询条件
	 * 
	 * @param refundNoCondition 退款单号（订单模块）查询条件
	 */
	public void setRefundNoCondition(Condition<String> refundNoCondition) {
		this.refundNoCondition = refundNoCondition;
	}

	/**
	 * 构造并返回会员ID（冗余ID）查询条件
	 * 
	 * @return memberIdCondition 会员ID（冗余ID）查询条件
	 */
	public Condition<String> memberId() {
		this.memberIdCondition = new Condition<>();
		return this.memberIdCondition;
	}
	
	/**
	 * 获取会员ID（冗余ID）查询条件
	 * 
	 * @return memberIdCondition 会员ID（冗余ID）查询条件
	 */
	public Condition<String> getMemberIdCondition() {
		return memberIdCondition;
	}

	/**
	 * 设置会员ID（冗余ID）查询条件
	 * 
	 * @param memberIdCondition 会员ID（冗余ID）查询条件
	 */
	public void setMemberIdCondition(Condition<String> memberIdCondition) {
		this.memberIdCondition = memberIdCondition;
	}

	/**
	 * 构造并返回会员钱包ID（冗余ID）查询条件
	 * 
	 * @return memberWalletIdCondition 会员钱包ID（冗余ID）查询条件
	 */
	public Condition<String> memberWalletId() {
		this.memberWalletIdCondition = new Condition<>();
		return this.memberWalletIdCondition;
	}
	
	/**
	 * 获取会员钱包ID（冗余ID）查询条件
	 * 
	 * @return memberWalletIdCondition 会员钱包ID（冗余ID）查询条件
	 */
	public Condition<String> getMemberWalletIdCondition() {
		return memberWalletIdCondition;
	}

	/**
	 * 设置会员钱包ID（冗余ID）查询条件
	 * 
	 * @param memberWalletIdCondition 会员钱包ID（冗余ID）查询条件
	 */
	public void setMemberWalletIdCondition(Condition<String> memberWalletIdCondition) {
		this.memberWalletIdCondition = memberWalletIdCondition;
	}

	/**
	 * 构造并返回悦卡模板ID查询条件
	 * 
	 * @return cardTemplateIdCondition 悦卡模板ID查询条件
	 */
	public Condition<String> cardTemplateId() {
		this.cardTemplateIdCondition = new Condition<>();
		return this.cardTemplateIdCondition;
	}
	
	/**
	 * 获取悦卡模板ID查询条件
	 * 
	 * @return cardTemplateIdCondition 悦卡模板ID查询条件
	 */
	public Condition<String> getCardTemplateIdCondition() {
		return cardTemplateIdCondition;
	}

	/**
	 * 设置悦卡模板ID查询条件
	 * 
	 * @param cardTemplateIdCondition 悦卡模板ID查询条件
	 */
	public void setCardTemplateIdCondition(Condition<String> cardTemplateIdCondition) {
		this.cardTemplateIdCondition = cardTemplateIdCondition;
	}

	/**
	 * 构造并返回会员悦卡ID查询条件
	 * 
	 * @return memberCardIdCondition 会员悦卡ID查询条件
	 */
	public Condition<String> memberCardId() {
		this.memberCardIdCondition = new Condition<>();
		return this.memberCardIdCondition;
	}
	
	/**
	 * 获取会员悦卡ID查询条件
	 * 
	 * @return memberCardIdCondition 会员悦卡ID查询条件
	 */
	public Condition<String> getMemberCardIdCondition() {
		return memberCardIdCondition;
	}

	/**
	 * 设置会员悦卡ID查询条件
	 * 
	 * @param memberCardIdCondition 会员悦卡ID查询条件
	 */
	public void setMemberCardIdCondition(Condition<String> memberCardIdCondition) {
		this.memberCardIdCondition = memberCardIdCondition;
	}

	/**
	 * 构造并返回退卡的悦卡金额查询条件
	 * 
	 * @return amountCondition 退卡的悦卡金额查询条件
	 */
	public Condition<BigDecimal> amount() {
		this.amountCondition = new Condition<>();
		return this.amountCondition;
	}
	
	/**
	 * 获取退卡的悦卡金额查询条件
	 * 
	 * @return amountCondition 退卡的悦卡金额查询条件
	 */
	public Condition<BigDecimal> getAmountCondition() {
		return amountCondition;
	}

	/**
	 * 设置退卡的悦卡金额查询条件
	 * 
	 * @param amountCondition 退卡的悦卡金额查询条件
	 */
	public void setAmountCondition(Condition<BigDecimal> amountCondition) {
		this.amountCondition = amountCondition;
	}

	/**
	 * 构造并返回退还的金额查询条件
	 * 
	 * @return refundFeeCondition 退还的金额查询条件
	 */
	public Condition<BigDecimal> refundFee() {
		this.refundFeeCondition = new Condition<>();
		return this.refundFeeCondition;
	}
	
	/**
	 * 获取退还的金额查询条件
	 * 
	 * @return refundFeeCondition 退还的金额查询条件
	 */
	public Condition<BigDecimal> getRefundFeeCondition() {
		return refundFeeCondition;
	}

	/**
	 * 设置退还的金额查询条件
	 * 
	 * @param refundFeeCondition 退还的金额查询条件
	 */
	public void setRefundFeeCondition(Condition<BigDecimal> refundFeeCondition) {
		this.refundFeeCondition = refundFeeCondition;
	}

	/**
	 * 构造并返回[枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY查询条件
	 * 
	 * @return refundCurrencyCondition [枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY查询条件
	 */
	public Condition<MemberCardRefundRefundCurrency> refundCurrency() {
		this.refundCurrencyCondition = new Condition<>();
		return this.refundCurrencyCondition;
	}
	
	/**
	 * 获取[枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY查询条件
	 * 
	 * @return refundCurrencyCondition [枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY查询条件
	 */
	public Condition<MemberCardRefundRefundCurrency> getRefundCurrencyCondition() {
		return refundCurrencyCondition;
	}

	/**
	 * 设置[枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY查询条件
	 * 
	 * @param refundCurrencyCondition [枚举]退还的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY查询条件
	 */
	public void setRefundCurrencyCondition(Condition<MemberCardRefundRefundCurrency> refundCurrencyCondition) {
		this.refundCurrencyCondition = refundCurrencyCondition;
	}

	/**
	 * 构造并返回退款时间查询条件
	 * 
	 * @return createdTimeCondition 退款时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取退款时间查询条件
	 * 
	 * @return createdTimeCondition 退款时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置退款时间查询条件
	 * 
	 * @param createdTimeCondition 退款时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回微信交易单号（微信退款时存在）查询条件
	 * 
	 * @return wechatTransactionIdCondition 微信交易单号（微信退款时存在）查询条件
	 */
	public Condition<String> wechatTransactionId() {
		this.wechatTransactionIdCondition = new Condition<>();
		return this.wechatTransactionIdCondition;
	}
	
	/**
	 * 获取微信交易单号（微信退款时存在）查询条件
	 * 
	 * @return wechatTransactionIdCondition 微信交易单号（微信退款时存在）查询条件
	 */
	public Condition<String> getWechatTransactionIdCondition() {
		return wechatTransactionIdCondition;
	}

	/**
	 * 设置微信交易单号（微信退款时存在）查询条件
	 * 
	 * @param wechatTransactionIdCondition 微信交易单号（微信退款时存在）查询条件
	 */
	public void setWechatTransactionIdCondition(Condition<String> wechatTransactionIdCondition) {
		this.wechatTransactionIdCondition = wechatTransactionIdCondition;
	}

	/**
	 * 构造并返回微信退款单号（微信退款时存在）查询条件
	 * 
	 * @return wechatRefundIdCondition 微信退款单号（微信退款时存在）查询条件
	 */
	public Condition<String> wechatRefundId() {
		this.wechatRefundIdCondition = new Condition<>();
		return this.wechatRefundIdCondition;
	}
	
	/**
	 * 获取微信退款单号（微信退款时存在）查询条件
	 * 
	 * @return wechatRefundIdCondition 微信退款单号（微信退款时存在）查询条件
	 */
	public Condition<String> getWechatRefundIdCondition() {
		return wechatRefundIdCondition;
	}

	/**
	 * 设置微信退款单号（微信退款时存在）查询条件
	 * 
	 * @param wechatRefundIdCondition 微信退款单号（微信退款时存在）查询条件
	 */
	public void setWechatRefundIdCondition(Condition<String> wechatRefundIdCondition) {
		this.wechatRefundIdCondition = wechatRefundIdCondition;
	}

	/**
	 * 构造并返回微信商户ID（微信退款时存在）查询条件
	 * 
	 * @return wechatMchIdCondition 微信商户ID（微信退款时存在）查询条件
	 */
	public Condition<String> wechatMchId() {
		this.wechatMchIdCondition = new Condition<>();
		return this.wechatMchIdCondition;
	}
	
	/**
	 * 获取微信商户ID（微信退款时存在）查询条件
	 * 
	 * @return wechatMchIdCondition 微信商户ID（微信退款时存在）查询条件
	 */
	public Condition<String> getWechatMchIdCondition() {
		return wechatMchIdCondition;
	}

	/**
	 * 设置微信商户ID（微信退款时存在）查询条件
	 * 
	 * @param wechatMchIdCondition 微信商户ID（微信退款时存在）查询条件
	 */
	public void setWechatMchIdCondition(Condition<String> wechatMchIdCondition) {
		this.wechatMchIdCondition = wechatMchIdCondition;
	}

	/**
	 * 构造并返回微信子商户ID（微信退款时存在）查询条件
	 * 
	 * @return wechatSubMchIdCondition 微信子商户ID（微信退款时存在）查询条件
	 */
	public Condition<String> wechatSubMchId() {
		this.wechatSubMchIdCondition = new Condition<>();
		return this.wechatSubMchIdCondition;
	}
	
	/**
	 * 获取微信子商户ID（微信退款时存在）查询条件
	 * 
	 * @return wechatSubMchIdCondition 微信子商户ID（微信退款时存在）查询条件
	 */
	public Condition<String> getWechatSubMchIdCondition() {
		return wechatSubMchIdCondition;
	}

	/**
	 * 设置微信子商户ID（微信退款时存在）查询条件
	 * 
	 * @param wechatSubMchIdCondition 微信子商户ID（微信退款时存在）查询条件
	 */
	public void setWechatSubMchIdCondition(Condition<String> wechatSubMchIdCondition) {
		this.wechatSubMchIdCondition = wechatSubMchIdCondition;
	}

}
